import React from 'react'
import ReactDOM from 'react-dom'

import App from './App'

import storageUtils from './utils/storageUtils'
import memoryUtils from './utils/memoryUtils'

// 这里可以一开始就读取 local 中保存的 user 信息,保存在内存,
const user = storageUtils.getUser();
memoryUtils.user = user;

ReactDOM.render(<App />, document.getElementById('root'));